import request from '@/utils/request'

// 查询产线列表
export function listBeltline(query) {
  return request({
    url: '/prs/beltline/list',
    method: 'get',
    params: query
  })
}

//字典
export function dictMatching (data) {
  return request({
    url: '/system/dict/data/type/'+ data,
    method: 'get',
  })
}

// 查询产线详细
export function getBeltline(roleId) {
  return request({
    url: '/prs/beltline/' + roleId,
    method: 'get'
  })
}

// 新增产线
export function addBeltline(data) {
  return request({
    url: '/prs/beltline',
    method: 'post',
    data: data
  })
}

// 修改产线
export function updateBeltline(data) {
  return request({
    url: '/prs/beltline',
    method: 'put',
    data: data
  })
}


// 删除产线
export function delBeltline(roleId) {
  return request({
    url: '/prs/beltline/' + roleId,
    method: 'delete'
  })
}

// 导出产线
export function exportBeltline(query) {
  return request({
    url: '/prs/beltline/export',
    method: 'get',
    params: query
  })
}